﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace WinUI
{
    public class Global
    {
        public static bool InitApp = false;
        public static Common.UserInfo _UserInfo;
        public static Business.Project _CurrentProject; //K00007
        public static List<Business.ProjectRegion> _CurrentProjectRegion; //
        public static List<Business.ProjectMechanicism> _CurrentProjectMechanicism; //
        public static Business.ProjectChannel _CurrentProjectChannel; //
        public const string CreateProgramFrmName = "CreateProgram";
        public const string EditProgramFrmName = "EditProgram";
        public const string ViewProgramFrmName = "ViewProgram";
        public const string CreateMasterPlan = "CreateMasterPlan";
        public const string EditMasterPlan = "EditMasterPlan";
        public const string ViewMasterPlan = "ViewMasterPlan";
        public const string CreateQuotation = "CreateQuotation";
        public const string EditQuotation = "EditQuotation";
        public const string ViewQuotation = "ViewQuotation";
        public const string CostcardManagement = "CostcardManager";
        //public const string DomainUrl = "http://221.132.37.39:8000/Sabeco/Web/";

        public static string GetTaskResult(int ErrorID, Enum ErrorCode, string MessageSystemError)
        {
            string error = Common.EnumUtils.stringValueOf(ErrorCode) + " " + MessageSystemError;
            return String.Format("{0}|{1}", ErrorID, error);
        }
    }
}
